//
//  YLLRetweetView.swift
//  YLLSina
//
//  Created by 于玲玲 on 16/8/2.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class YLLRetweetView: UIView {


    //第一步 重写父类的构造方法
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    //第二步 定义一个添加子类和设置子类控件约束的方法
    private func setupUI(){
        
        backgroundColor = UIColor.yellowColor()

        addSubview(contentLabel)
        
        // 约束
        contentLabel.snp_makeConstraints { (make) -> Void in
            make.left.equalTo(self.snp_left)
            make.top.equalTo(self.snp_top)
            make.right.equalTo(self.snp_right)
            make.bottom.equalTo(self.snp_bottom)
        }
        
    }
    //懒加载控件

    private lazy var contentLabel: UILabel = {
        
        let label = UILabel()
        
        label.text = "转发微博"
        
        return label
        
    }()
}
